<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="dns-prefetch" href="//freelancer.m.ddxq.mobi"/>
    <title>叮咚小区</title>
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="mobileOptimized" content="320"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black-translucent" name="apple-mobile-web-app-status-bar-style"/>
    <meta name="apple-touch-fullscreen" content="YES"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
    <script>
        // loading animation before document ready
        var LOADING_ID = 'app-loading', COMPLETE = false,       INITIAL_TEXT = "应用加载中，请稍等~~",
                UE_WAIT_1 = 3 * 1000,   UE_WAIT_1_TEXT = "还要一会，别急~~",
                UE_WAIT_2 = 10 * 1000,  UE_WAIT_2_TEXT = "网速不给力哦，请耐心等待~~",
                UE_WAIT_3 = 30 * 1000,  UE_WAIT_3_TEXT = "天哪，怎么会这么慢，检查下网络重新打开看看~~";
        document.write('<div id="' + LOADING_ID + '">' + INITIAL_TEXT + '</div>');
        var LOADING_NODE = document.getElementById(LOADING_ID);
        // timing the loading speed
        var start = new Date().getTime();
        var timing1 = setTimeout(function () {if (!COMPLETE) {LOADING_NODE.innerText = UE_WAIT_1_TEXT}}, UE_WAIT_1);
        var timing2 = setTimeout(function () {if (!COMPLETE) {LOADING_NODE.innerText = UE_WAIT_2_TEXT}}, UE_WAIT_2);
        var timing3 = setTimeout(function () {if (!COMPLETE) {LOADING_NODE.innerText = UE_WAIT_3_TEXT}}, UE_WAIT_3);

        function apploaded() {
            document.body.removeChild(LOADING_NODE);
            COMPLETE = true;
            clearTimeout(timing1); clearTimeout(timing2); clearTimeout(timing3);
        }
    </script>
</head>
<body>
    <div id="app"></div>
    <script onload="apploaded()" type="text/javascript" src="app.bundle.js"></script>
    <script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="//api.map.baidu.com/api?type=quick&v=1.0&ak=m01Y055G53bbNdEfhlykgfox"></script>
</body>
</html>